package org.dromara.solonplugins.job.test2.job;

import org.dromara.solonplugins.job.IJobHandler;
import org.dromara.solonplugins.job.annotation.JobHandler;
import org.noear.solon.annotation.Component;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 项目启动会自动注册@JobHandler标识的Job
 *
 * @author: aoshiguchen
 */
@Component
@JobHandler(name = "JobDemo2", cron = "0/10 * * * * ?")
public class JobDemo2 implements IJobHandler {
    private static final Logger log = LoggerFactory.getLogger(JobDemo2.class);

    @Override
    public void execute(String param) throws Exception {
        log.info("JobDemo2 参数：{}", param);
    }

}
